package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseListGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-01-29 20:46 星期日
 * description:
 */
public interface PurchaseListGoodsDao {

    /**
     * 批量保存purchaseListGoodsList
     * @param purchaseListGoodsList
     */
    void bachSave(@Param("purchaseListGoodsList") List<PurchaseListGoods> purchaseListGoodsList);

    /**
     * 根据purchaseListId查询进货单商品信息
     * @param purchaseListId
     * @return
     */
    List<PurchaseListGoods> goodsList(@Param("purchaseListId") Integer purchaseListId);


    /**
     * 查询指定purchaseListId下的商品信息
     * @param purchaseListId
     * @return
     */
    List<PurchaseListGoods> ifHaspurchaseListGoods(@Param("purchaseListId") Integer purchaseListId);
}
